using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;

public class UIButtonLabel : MonoBehaviour
{
    public ESolarName m_solar_name;
    private Button _btn;
    
    void Start()
    {
        _btn = transform.AddComponent<Button>();
        _btn.onClick.AddListener(OnClickBtnLabel);
    }

    private void OnClickBtnLabel()
    {
        UIManager.m_Intance.OnClickButton(m_solar_name);
    }
}
